
package me.zhengjie.service.dto;

import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;

/**
* @website https://el-admin.vip
* @description /
* @author IQW
* @date 2022-07-03
**/
public class ApiWorkDto implements Serializable {

    /** 任务ID */
    private Integer workId;

    /** 标题 */
    private String title;

    private String label;

    private String jjcd;

    /** 类型（1临时巡护，2日常巡护，3紧急巡护） */
    private Integer type;

    /** 目的地 */
    private String address;

    /** 目的地经度 */
    private Double lon;

    /** 目的地纬度 */
    private Double lat;

    private String note;

    private String imgs;

    private String voice;

    private Integer vtime;

    /** 巡护开始时间 */
    private Timestamp startTime;

    /** 巡护结束时间 */
    private Timestamp endTime;

    /** 状态（0未开始，1巡护中，2已完成） */
    private Integer status;

    public Integer getVtime() {
        return vtime;
    }

    public void setVtime(Integer vtime) {
        this.vtime = vtime;
    }

    public Integer getWorkId() {
        return workId;
    }

    public void setWorkId(Integer workId) {
        this.workId = workId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getJjcd() {
        return jjcd;
    }

    public void setJjcd(String jjcd) {
        this.jjcd = jjcd;
    }

    public Integer getType() {
        if(null != this.getLabel()){
            return Integer.parseInt(this.getLabel());
        }else{
            return 1;
        }
    }

    public void setType(Integer type) {

        if(null != this.getLabel()){
            this.type = Integer.parseInt(this.getLabel());
        }
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Double getLon() {
        return lon;
    }

    public void setLon(Double lon) {
        this.lon = lon;
    }

    public Double getLat() {
        return lat;
    }

    public void setLat(Double lat) {
        this.lat = lat;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getImgs() {
        return imgs;
    }

    public void setImgs(String imgs) {
        this.imgs = imgs;
    }

    public String getVoice() {
        return voice;
    }

    public void setVoice(String voice) {
        this.voice = voice;
    }

    public Timestamp getStartTime() {
        return startTime;
    }

    public void setStartTime(Timestamp startTime) {
        this.startTime = startTime;
    }

    public Timestamp getEndTime() {
        return endTime;
    }

    public void setEndTime(Timestamp endTime) {
        this.endTime = endTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}